package cn.star.jots.records.mapper;

import cn.star.jots.records.pojo.dto.RecordsQuery;
import cn.star.jots.records.pojo.dto.RecordsSaveParam;
import cn.star.jots.records.pojo.entity.Records;
import cn.star.jots.records.pojo.vo.RecordsVO;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface RecordsMapper {

    void insert(Records records);

    void update(Records records);

    Boolean isExist(RecordsSaveParam recordsSaveParam);

    RecordsVO selectById(Long id);

    List<Records> select(RecordsQuery recordsQuery);

    void delete(Long id);
}
